home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / PRG / SysMenu 1.4 Folder.sit / SysMenu 1.4 Folder / SysMenu 1.4 / About INIT Dispatcher next >
Text File  |  1996-06-24  |  2KB  |  42 lines

  1. INIT Dispatcher - A way to make FAT System Extensions
  2.  
  3. This is a template I have used to make a System Extension I am working on.
  4. It consists of 3 MW projects that compile a demo INIT:
  5.  
  6.     * 68K Dispatch Resource   ==> Compiled + Ready to use
  7.  
  8.     * 68K Executable Resource ¥
  9.                                => Common code base
  10.     * PPC Executable Resource /
  11.  
  12. The Dispatch project creates a valid INIT resource, which looks for the
  13. appropriate executable resource ('PPC・' or '68K・') with the same res ID
  14. and executes it as if it were a normal INIT. By looking at the installed
  15. CPU, it provides better reliability than testing for the MixedMode trap 
  16. (which can be defined by CFM-68K). If there is a problem loading the PPC
  17. code, then it will fall back on the 68K.
  18.  
  19. The 68K project creates a '68K・' resource, merged into the INIT file. It
  20. is compiled with a custom resource header, so it uses the appropriate 
  21. libraries and A4-related calls.
  22.  
  23. The PPC project creates a 'PPC・' resource, also merged into the INIT file.
  24. As it sits, this project creates a PPC fragment with no header or descriptor,
  25. but the Dispatcher will properly handle a resource starting with either a 
  26. RoutineDescriptor or the raw CFM container.
  27.  
  28. I hope this helps someone out. I am sure there are other techniques for doing
  29. this, but *I* got it to work so I am using it. Drop me a line if you use it, 
  30. or it crashes your machine, or if you just wanna talk. I'm there for you.
  31.  
  32. Changes from 1.1 to 1.2
  33.     * Fixed the Gestalt call to to gracefully accept an error code on 68K
  34.       systems that simply doesn't know about the new selector.
  35.  
  36. Changes from 1.2 to 1.3
  37.     * Updated for CW8
  38.     * Removed test for PPC 620
  39.     * Better ResError checking
  40.  
  41. Matt Slot (fprefect@umich.edu) - 6/24/96
  42. <http://www.si.umich.edu/~fprefect>